{include file='public/header'}

<section class="thinkask-main">
  <div class="people-top">
  	<div class="container">
      <div class="people-top-body">
        <div class="people-top-avatar publish-upload-img">
          <style type="text/css">
          	.publish-upload-img {position: relative;}
            /*封面图片上传按钮样式*/
            .publish-upload-btn{background-color: #3EC75A;padding: 4px 5px;color: #fff;border-radius: 3px;text-decoration: none;position:absolute;left: 0;top:0;font-size: 12px;}
            .publish-upload-btn:hover{text-decoration: none;color: #FFFFFF;}
            .publish-upload-btn .upload-img{position:absolute;top:-7px;left:0px;width: 40px;height: 30px;cursor: pointer;opacity: 0;}
          </style>
  
          <!--   <a class="publish-upload-btn">更换
    			<form id="avatar_up" action="/people/people/upload_avatar" enctype="multipart/form-data" method="post">
                  <input type="file" name="avatar" id="avatar" onchange="submit()" class="upload-img" >
    			  </form>
            </a> -->
         
          <input id="paraid" class="hide" value="<?php echo(${id}) ?>" >
          <img class="avatar" src="{:get_file_path($user['avatar_file'])}"/>
        </div>
        <div class="people-top-content">
        	<h1>{$user_name}</h1>
        	<p>粉丝：  关注： </p>
        	<p>最后登录:{:date('Y-m-d',$user['reg_time'])}</p>
        </div>
        <div class="pull-right">
        <?php if($userinfo['uid']!=$id){ ?>
          <?php if($focusSt == 1){ ?>
          <a href="javascript:void(0)"  class="btn btn-success t_focus">已关注</a>
          <?php }else{ ?>
          <a href="javascript:void(0)"  class="btn btn-success t_focus">关注</a>
          <?php } ?>
        <?php } ?>
        </div>

      </div>
  	</div>
  </div>
  <div class="people-content">
    <div class="container">
      <div class="page page-default" style="margin-top: 20px;">
        <div class="page-heading height clearfix">
        <h3 class="pull-left">用户中心</h3>
        <ul class="nav nav-tabs  pull-right hidden-xs">
          
           <li class=" <?php if($status!="hot"&&$status!="recommend"&&$status!="unresponsive"){ echo "active";} ?>">
              <a href=""  >问答</a></li>

          </ul>
        </div>
        <div class="page-body">
            <section class="default-question">
             {if condition='$question'}
              {foreach  name='question' id="v"}
              <div class="question-list clearfix">
                <ul class="question-num list-unstyled m-b-n">
                  <li><span class="num"> {$v['answer_count']} </span><span class="txt"> 回复 </span></li>
                  <li><span class="num"> {$v['view_count']} </span><span class="txt"> 浏览 </span></li>
                </ul>
                <div class="question-content">
                  <h3 class="question-title"><a href="/question/{$v['question_id']}.html">{$v['question_content']}</a></h3>
                  <div class="question-info">
            
                  <?php if(is_array($topics[$v['question_id']])) {?>
                    <ul class="tags list-unstyled pull-left m-b-n">
                    {foreach name="$topics[$v['question_id']]" id="to"}
                      <li><a href="javascript:;">{$to.topic_title}</a></li>
                    {/foreach}
                    </ul>
                   <?php } ?>
                    <div class="pull-right">
                      <a href="" rel="nofollow">{$v.user_name}</a> {:date_friendly($v['add_time'])}发布
                    </div>
                  </div>
                </div>
              </div> 
              {/foreach}
              {else /}
              <div class="alert alert-info" style="margin-top:20px;">您还没有提问，<a href="/question/post/edit.html">马上提问</a></div>
              {/if}
            </section>
        </div>
    </div>
    </div>
  </div>
</section>
<script>
function submit(){
$('#avatar_up').submit()
}
</script>

{include file="public/footer"}